<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <script src="https://cdn.acwing.com/static/jquery/js/jquery-3.3.1.min.js"></script>
  <title>C客</title>
</head>
<body>
  <div class="main" style="display: flex;flex-flow: column nowrap;">
    <div class="head" style="display:flex; flex-flow: row nowrap; justify-content: space-between;padding: 10px 25px ;background: #ffffff">
      <div class="left" style="display: flex;align-items: center;gap: 30px;">
        <div style="display: flex;align-items: center;">
          <div style="display:flex; align-items: center;cursor: pointer;" onclick=jump()>
          <img src="static/img/24-monkey.png" style="width: 30px; height: 30px;margin-right: 10px">
          <div style="font-size: 30px;font-family: FZShuTi;color: red; font-weight: bolder;padding: 0px">C</div>
          <div style="font-size: 30px;font-family: FZShuTi">SDN</div>
          </div>
        </div>
        <div style="font-size:15px">博客</div>
        <div style="font-size:15px">开发者文库</div>
        <div style="font-size:15px">课程</div>
        <div style="font-size:15px">问答</div>
        <div style="font-size:15px">社区</div>
        <div style="font-size:15px">插件</div>
        <div style="font-size:15px">认证</div>
        <div style="font-size:15px">开源</div>
      </div>

      <div class="right" style="display: flex;align-items: center;gap: 30px;">
        <img src="static/img/头像%20男孩.png" style="width: 35px; height: 35px;margin-right: 10px;border-radius: 30px">
        <div style="display: flex; align-items: center">
          <div style="font-size:15px; margin-right: 2px">会员中心</div>
          <img src="static/img/礼物.png"  style="width: 15px; height: 15px;">
        </div>
        <div style="font-size:15px">足迹</div>
        <div style="font-size:15px">动态</div>
        <div style="font-size:15px">消息</div>
        <div class="create" style="display:flex;align-items: center;background-color: rgb(252,58,49);padding: 5px;border-radius: 20px;cursor:pointer" onclick="writeArticle()">
          <img src="static/img/用研.png" style="width: 25px; height: 20px;margin-left: 5px">
          <div style="font-size:15px;color: white;">创作</div>
          <img src="static/img/下拉.png" style="width: 20px; height: 20px;">
        </div>
      </div>
    </div>

    <div class="search" style="background-color: white;box-shadow:inset 0px 15px 10px -20px #000 ,0px 15px 10px -20px #000;display:flex;align-items: center">
      <input class="input" type="text" id="ArticleTitle" name="search" style="height: 40px;border: 1px solid   #e9e9eb;border-radius:2px;padding: 0px 20px;margin: 10px 0px 10px 15%;width: 45%;background-color: rgb(242,242,242)">
      <view onclick="search()" style="color:white;font-size: 20px;background-color: rgb(254,107,0);padding: 8px 0px;width:6%;text-align: center;font-family: STSong;overflow:hidden;">C一下</view>
    </div>

    <div class="body" style="display: flex; flex-flow: row nowrap;margin-top: 10px;gap: 10px">
      <div class="left" style="width: 53%;background-color: white;margin-left:15%;display:flex;flex-flow: column nowrap">
        <div class="title" style="display:flex;gap:20px;margin: 10px 0px 0px 20px">
          <div class="one" style="display: flex; flex-flow: column;cursor: pointer">
            <div>全站</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px;display:block"></div>
          </div>
          <div class="two" style="display: flex; flex-flow: column;cursor: pointer">
            <div >博客</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
          <div class="three" style="display: flex; flex-flow: column;cursor: pointer">
            <div >下载</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
          <div class="four" style="display: flex; flex-flow: column;cursor: pointer">
            <div>代码</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
          <div class="five" style="display: flex; flex-flow: column;cursor: pointer">
            <div >用户</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>

          <div class="six" style="display: flex; flex-flow: column;cursor: pointer">
            <div>课程</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px;display:none"></div>
          </div>
          <div class="seven" style="display: flex; flex-flow: column;cursor: pointer">
            <div >专栏</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
          <div class="eight" style="display: flex; flex-flow: column;cursor: pointer">
            <div >问答</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
          <div class="nine" style="display: flex; flex-flow: column;cursor: pointer">
            <div>商城</div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
          <div class="ten" style="display: flex; flex-flow: column;cursor: pointer">
            <div style="display: flex;align-items: center">
              更多
              <img src="static/img/下拉2.png" style="width: 20px;height: 20px">
            </div>
            <div class="line" style="margin: 15px 5px 0px;background-color: black;height: 2px; display:none"></div>
          </div>
        </div>

        <div class="line"></div>

        <div class="vice-title" style="display: flex; justify-content: space-between ;padding: 10px 30px 10px 20px;background-color:rgb(253,253,253);align-items: center">
          <div style="display:flex;flex-flow: row nowrap;gap: 20px;">
            <div class="one" style="font-size: 15px;padding: 2px 5px;color: #73767a;cursor: pointer">综合</div>
            <div class="two" style="font-size: 15px;padding: 2px 5px;color: #73767a;cursor: pointer">最新</div>
            <div class="three" style="font-size: 15px;padding: 2px 5px;color: #73767a;cursor: pointer">热门</div>
            <div class="four" style="display: flex;align-items: center;gap: 5px;cursor:pointer;">
              <div style="width: 15px; height: 15px;border: 1px solid  #e9e9eb;">
                <img class="image" src="static/img/对勾.png" style="width: 15px; height: 15px;margin-bottom: 2px;background-color:#79bbff;display: none">
              </div>
              <div class="text" style="font-size: 15px;color: #73767a">VIP内容</div>
            </div>
          </div>
          <div style="font-size: 10px;color: #73767a;">相关结果约22个</div>
        </div>

        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" style="">
            <div class="title" onclick="tclick(1)">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
        <div id="article">

        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" style="">
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" style="">
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" style="">
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" >
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px "></div>
        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" style="">
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" style="">
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
        <div class="content" style="display: flex; flex-flow: column nowrap;padding:10px 20px">
          <div class="item" >
            <div class="title">C/C++基础语法</div>
            <div class="detail">所以相对于C,C++包含了更丰富的“设计”的概念,但C是C++的一个自洽子集,也具有强大的功能,同样值得学习。 c语句是面向结构的语言,c++是面向对象的语言,C++从根本上已经发生质飞跃,并对c进行丰富的扩展。</div>
            <div class="footer">
              <div class="left">
                <img src="static/img/眼睛.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">1007</div>
                <img src="static/img/点赞.png" style="width: 20px;height: 20px">
                <div class="detail" style="margin: 0px 30px 0px 10px">666</div>
              </div>
              <div class="right">
                <div class="detail" style="margin: 0px 40px 0px 10px">一起学编程</div>
                <div class="detail" style="margin: 0px 10px 0px 0px">2019-12-07</div>
              </div>
            </div>
          </div>
          <div class="line" style="margin: 20px -20px 0px"></div>
        </div>
      </div>

      <div class="right" style="display: flex;flex-flow: column nowrap;width: 17%; gap: 10px;" >
        <div class="oneblock" style="display: flex;flex-flow: column nowrap;background-color: white;padding: 20px">
          <div class="title" style="font-size: 20px">相关搜索</div>
          <div class="line" style="margin: 15px -20px 20px"></div>
          <div style="display: flex; flex-flow: row wrap;gap: 10px">
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言基础入门知识</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言程序设计</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c++</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c#</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言小游戏</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言指针</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言圣诞树代码</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">冒泡排序c语言</div>
            <div style="padding: 5px 10px; background-color: rgb(242,242,242);font-size: 15px">c语言小游戏大全</div>
          </div>
        </div>

        <div class="twoblock" style="display: flex;flex-flow: column nowrap;background-color: white;padding: 20px">
          <div class="title" style="font-size: 20px">全站热搜榜</div>
          <div class="line" style="margin: 15px -20px 20px"></div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div style="color:red">1</div>
                <div>蓝桥杯历年真题</div>
              </div>
              <img src="static/img/热度.png " style="width: 25px; height: 25px"></img>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div style="color:indianred">2</div>
                <div>计算机背包问题</div>
              </div>
              <img src="static/img/热度.png " style="width: 25px; height: 25px"></img>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
          <div style="display: flex;justify-content: space-between;align-items: center">
            <div style="display: flex;gap: 10px">
              <div style="color:orange">3</div>
              <div>微信小程序商城搭建</div>
            </div>
            <img src="static/img/热度.png " style="width: 25px; height: 25px"></img>
          </div>
        </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>4</div>
                <div>数据化可视工具</div>
              </div>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>5</div>
                <div>彻底搞懂背包问题</div>
              </div>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>6</div>
                <div>队列的基本操作</div>
              </div>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>7</div>
                <div>迷宫问题求解</div>
              </div>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>8</div>
                <div>前端练手项目集合</div>
              </div>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>9</div>
                <div>凯撒密码实现</div>
              </div>
            </div>
          </div>
          <div style="display: flex; flex-flow: column nowrap;gap: 10px;margin-bottom: 10px">
            <div style="display: flex;justify-content: space-between;align-items: center">
              <div style="display: flex;gap: 10px">
                <div>10</div>
                <div>数据库从入门到精通</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>


</body>
</html>
<script>
    var url = decodeURI(location.search);
    if(url.indexOf("?") != -1){
        str = url.substr(1);
        strs = str.split("&");
    }
    let urlParameter ={}
    for(let i = 0 ; i < strs.length; i ++) {
        let split = strs[i].split("=")
        urlParameter[split[0]] = split[1]
    }



  var curindex = "one";
  var lastindex = "one";
  var vicecurindex = "one";
  var vicelastindex = "one";
  var checked = false;
  var searchResultNum = 10;
    function search() {
      console.log("2222")
      if ($("#UserID").val() != "") {
        $.ajax({
          type: "Get",
          url: "SearchArticleServlet",
          dataType: "json",
          data: {
            "ArticleTitle": $("#ArticleTitle").val(),
          },
          success: function (data) {
            console.log(data)
            if (data === null) {
              return
            }
            $("#article").empty()
            for (let i = 0; i < data.length; i++) {

              let articleitem = data[i];
              let articleTitle = articleitem.article.articleTitle;
              let articleContent = articleitem.article.articleContent;
              let articleID = articleitem.article.articleID;
              let username = articleitem.username;
              let articleView = articleitem.article.articleView;
              let articleLike = articleitem.article.articleLike;
              let articleCreateTime = articleitem.article.articleCreateTime;
              if (articleContent.length > 50) {
                articleContent = articleContent.slice(0, 50);
              }
              $("#article").append(
                      "<div class=\"content\" style=\"display: flex; flex-flow: column nowrap;padding:10px 20px\">\n" +
                      "<div class=\"item\" style=\"\">\n" +
                      "<div class=\"title\" onclick=\"tclick(" + articleID + ")\">" + articleTitle + "</div>\n" +
                      "<div class=\"detail\">" + articleContent + "</div>\n" +
                      "<div class=\"footer\">\n" +
                      "<div class=\"left\">\n" +
                      "<img src=\"static/img/眼睛.png\" style=\"width: 20px;height: 20px\">\n" +
                      "<div class=\"detail\" style=\"margin: 0px 30px 0px 10px\">" + articleView + "</div>\n" +
                      "<img src=\"static/img/点赞.png\" style=\"width: 20px;height: 20px\">\n" +
                      "<div class=\"detail\" style=\"margin: 0px 30px 0px 10px\">" + articleLike + "</div>\n" +
                      "</div>\n" +
                      "<div class=\"right\">\n" +
                      "<div class=\"detail\" style=\"margin: 0px 40px 0px 10px\">" + username + "</div>\n" +
                      "<div class=\"detail\" style=\"margin: 0px 10px 0px 0px\">" + articleCreateTime + "</div>\n" +
                      "</div>\n" +
                      "</div>\n" +
                      "</div>\n" +
                      "<div class=\"line\" style=\"margin: 20px -20px 0px\"></div>\n" +
                      "</div>"
              )
            }
          }
        })
      }
    }
  $(document).ready(function(){

      $.ajax({
          type: "get",
          url:"LoadArticleServlet",
          dataType: "json",
          success: function(data){
              if(data === null){
                  return
              }
              for(let i = 0; i < data.length; i ++){

                  let articleitem = data[i];
                  let articleTitle = articleitem.article.articleTitle;
                  let articleContent = articleitem.article.articleContent;
                  let articleID = articleitem.article.articleID;
                  let username = articleitem.username;
                  let articleView = articleitem.article.articleView;
                  let articleLike = articleitem.article.articleLike;
                  let articleCreateTime = articleitem.article.articleCreateTime;
                  if(articleContent.length > 50){
                      articleContent  = articleContent.slice(0,50);
                  }
                  $("#article").append(
                      "<div class=\"content\" style=\"display: flex; flex-flow: column nowrap;padding:10px 20px\">\n" +
                      "<div class=\"item\" style=\"\">\n" +
                      "<div class=\"title\" onclick=\"tclick(" + articleID + ")\">" + articleTitle + "</div>\n" +
                      "<div class=\"detail\">" + articleContent + "</div>\n" +
                      "<div class=\"footer\">\n" +
                      "<div class=\"left\">\n" +
                      "<img src=\"static/img/眼睛.png\" style=\"width: 20px;height: 20px\">\n" +
                      "<div class=\"detail\" style=\"margin: 0px 30px 0px 10px\">" + articleView + "</div>\n" +
                      "<img src=\"static/img/点赞.png\" style=\"width: 20px;height: 20px\">\n" +
                      "<div class=\"detail\" style=\"margin: 0px 30px 0px 10px\">" + articleLike + "</div>\n" +
                      "</div>\n" +
                      "<div class=\"right\">\n" +
                      "<div class=\"detail\" style=\"margin: 0px 40px 0px 10px\">" + username + "</div>\n" +
                      "<div class=\"detail\" style=\"margin: 0px 10px 0px 0px\">" + articleCreateTime + "</div>\n" +
                      "</div>\n" +
                      "</div>\n" +
                      "</div>\n" +
                      "<div class=\"line\" style=\"margin: 20px -20px 0px\"></div>\n" +
                      "</div>"
                  )
              }
          }
      });
  });
  function jump(){
      window.location.href="/boke_war_exploded/Main.html?userid=" + urlParameter.userid +"&state=" + urlParameter.state;
  }
  $(".body .title .one").click(function(){
    lastindex = curindex;
    curindex  = "one"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".title .one").addClass("bond")
    $("." +curindex + " .line").css("display","block")
  })

  $(".body .title .two").click(function(){
    lastindex = curindex;
    curindex  = "two"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".title .two").addClass("bond")
    $("." + curindex + " .line").css("display","block")
  })
  $(".body .title .three").click(function(){
    lastindex = curindex;
    curindex  = "three"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".title .three").addClass("bond")
    $("." +curindex + " .line").css("display","block")
  })
  $(".body .title .four").click(function(){
    lastindex = curindex;
    curindex  = "four"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".title .four").addClass("bond")
    $("." +curindex + " .line").css("display","block")
  })
  $(".body .title .five").click(function(){
    lastindex = curindex;
    curindex  = "five"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".five").addClass("bond")
    $("." + curindex + " .line").css("display","block")
  })
  $(".body .title .six").click(function(){
    lastindex = curindex;
    curindex  = "six"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".six").addClass("bond")
    $("." + curindex + " .line").css("display","block")
  })
  $(".body .title .seven").click(function(){
    lastindex = curindex;
    curindex  = "seven"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".seven").addClass("bond")
    $("." + curindex + " .line").css("display","block")
  })
  $(".body .title .eight").click(function(){
    lastindex = curindex;
    curindex  = "eight"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".eight").addClass("bond")
    $("." + curindex + " .line").css("display","block")
  })
  $(".body .title .nine").click(function(){
    lastindex = curindex;
    curindex  = "nine"
    $("." +lastindex +" .line").css("display","none")
    $("." + lastindex).removeClass("bond")
    $(".nine").addClass("bond")
    $("." + curindex + " .line").css("display","block")
  })
  $(".body .title .ten").hover(function(){
    $(".ten img").css("transition","transform .5s")
    $(".ten img").css("transform","rotate(-180deg)")
  },function(){
    $(".ten img").css("transform","rotate(0deg)")
  })

  $(".body .vice-title .one").click(function(){
    vicelastindex = vicecurindex;
    vicecurindex  = "one"
    $(".vice-title" + " ."+ vicelastindex).css("background","white")
    $(".vice-title" + " ."+ vicelastindex).css("color","#73767a")
    $(".vice-title" + " ."+ vicecurindex).css("background","rgb(240,240,245)")
    $(".vice-title" + " ."+ vicecurindex).css("color"," #000000")

  })
  $(".body .vice-title .two").click(function(){
    vicelastindex = vicecurindex;
    vicecurindex  = "two"
    $(".vice-title" + " ."+ vicelastindex).css("background","white")
    $(".vice-title" + " ."+ vicelastindex).css("color","#73767a")
    $(".vice-title" + " ."+ vicecurindex).css("background","rgb(240,240,245)")
    $(".vice-title" + " ."+ vicecurindex).css("color"," #000000")

  })
  $(".body .vice-title .three").click(function(){
    vicelastindex = vicecurindex;
    vicecurindex  = "three"
    $(".vice-title" + " ."+ vicelastindex).css("background","white")
    $(".vice-title" + " ."+ vicelastindex).css("color","#73767a")
    $(".vice-title" + " ."+ vicecurindex).css("background","rgb(240,240,245)")
    $(".vice-title" + " ."+ vicecurindex).css("color"," #000000")
  })
  $(".body .vice-title .four").click(function(){
    if(!checked){
      $(".vice-title" + " ."+ "four" + " .text").css("color","cornflowerblue")
      $(".vice-title" + " ."+ "four" + " .image").css("display","block")
    }
    else{
      $(".vice-title" + " ."+ "four" + " .text").css("color","#73767a")
      $(".vice-title" + " ." + "four" + " .image").css("display", "none")
    }
    checked = !checked
  })
  $(".body .vice-title .four").hover(function(){

    $(".vice-title" + " .four" + " .text").css("color","cornflowerblue")
  },function(){
    if(!checked)
      $(".vice-title" + " .four" + " .text").css("color","#73767a")
  })
  function tclick(articleID){
    window.location.href="/boke_war_exploded/content.html?articleid=" + articleID + "&userid=" + urlParameter.userid + "&state=" + urlParameter.state;
  }

  function writeArticle(){
      window.location.href="/boke_war_exploded/ReleaseArticle.html?userid=" + urlParameter.userid +"&state=" + urlParameter.state;
  }

</script>
<style lang="scss">
  body{
    margin: 0px;
    background: rgb(242,242,242);
  }
  .line{
    font-size: 20px;
    height: 1px;
    background-color: #d4d4d4;
    color: rgba(101, 101, 101, 1);
  }
  .bond{
    font-weight: bold;
  }

  .title .one:hover{
    font-weight: bold !important;
  }
  .title .two:hover{
    font-weight: bold !important;
  }
  .title .three:hover{
    font-weight: bold !important;
  }
  .title .four:hover{
    font-weight: bold !important;
  }
  .title .five:hover{
    font-weight: bold !important;
  }
  .title .six:hover {
    font-weight: bold !important;
  }
  .title .seven:hover{
    font-weight: bold !important;
  }
  .title .eight:hover{
    font-weight: bold !important;
  }
  .title .nine:hover {
    font-weight: bold !important;
  }
  .title .ten:hover {
    font-weight: bold !important;
  }

  .vice-title .one:hover{
    color: #000000 !important;
  }
  .vice-title .two:hover{
    color: #000000 !important;
  }
  .vice-title .three:hover{
    color: #000000 !important;
  }
  .input:hover {
    border-color:red !important;
    background-color: white !important;
  }
  .input:focus{
    outline: none;
    background-color: white !important;
  }
  .content .item{
    display:flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    gap:10px
  }
  .content .item .title{
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;

  }
  .content .item .detail{
    font-size: 14px;
    color: #A8ABB2;

  }
  .content .item .footer{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
  }
  .content .item .footer .left{
    display: flex;
    align-items: center;
  }
  .content .item .footer .right{
    display: flex;
    align-items: center;
  }
</style>